package cn.springcloud.book.controller;

import cn.springcloud.book.service.SkyFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by wudl on 2018/12/6.
 */
@RestController
@RequestMapping("skyController")
public class SkyController {

    @Autowired
    private SkyFeignService skyFeignService;

    @RequestMapping(value = "/getInfo")
    public String getInfo(){
        return skyFeignService.getSendInfo("service-a");
    }
}
